package com.tiancheng.trade.payment.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tiancheng.trade.payment.mapper.RefundSettleDetailMapper;
import com.tiancheng.trade.payment.mapper.RefundSettleMapper;
import com.tiancheng.trade.payment.model.RefundSettle;
import com.tiancheng.trade.payment.model.RefundSettleDetail;
import com.tiancheng.trade.payment.service.IRefundSettleDetailService;
import com.tiancheng.trade.payment.service.IRefundSettleService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;

/**
 * 退款结算明细 service impl
 */
@Service
public class RefundSettleDetailServiceImpl extends ServiceImpl<RefundSettleDetailMapper, RefundSettleDetail> implements IRefundSettleDetailService {

    @Override
    public List<RefundSettleDetail> queryBySettleIds(Set<Long> settleIds) {
        return list(new LambdaQueryWrapper<RefundSettleDetail>().in(RefundSettleDetail::getSettleId,settleIds));
    }
}
